package com.touringapp.android.activity;

import java.util.AbstractMap;
import java.util.Collections;
import java.util.Set;

public abstract class AbstractAccessorMap<E> extends AbstractMap<String, Object> {

    public static final String KEY_TITLE = "TYP_title";


    protected E wrapped;
    
    protected abstract String getTitle(E wrapped);

    public AbstractAccessorMap(E wrapped) {
        this.wrapped = wrapped;
    }

    @Override
    public Object get(Object key) {
        return wrapped;
    }

    @Override
    public Set<java.util.Map.Entry<String, Object>> entrySet() {
        return Collections.emptySet();
    }


}
